package com.fancy.application.common.entity;

/**
 * Created by wison on 2019/7/31.
 */
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fancy.application.framework.dic.annotation.Dictionary;
import com.fancy.application.framework.dic.annotation.SimpleField;
import com.fancy.application.framework.dic.enums.TypeEnums;
import lombok.Data;

import java.util.Date;

@Data
@Dictionary(modelName = "com.fancy.application.common.entity.BaseEntity")
public abstract class BaseEntity {
    @TableId(value="fd_id")
    @SimpleField(messageKey = "领导id",name = "fdId",column = "fd_id",nullable = false,pk = true)
    private String fdId;
    
    @TableField("fd_create_time")
    @SimpleField(messageKey = "创建时间",name = "fdCreateTime",column = "fd_create_time",type = TypeEnums.DATE)
    private Date fdCreateTime = new Date();

}
